load("//ic-os:defs.bzl", "icos_build")
load("//ic-os/dev-tools/bare_metal_deployment:tools.bzl", "launch_bare_metal")
load("//ic-os/setupos:defs.bzl", "image_deps")
load("//publish:defs.bzl", "artifact_bundle")

# The macro contains several targets.
# Check
#       //ic-os/setupos/BUILD.bazel for examples
#    or //ic-os/defs.bzl for the full list of targets.
icos_build(
    name = "dev",
    image_deps_func = image_deps,
    upgrades = False,
    visibility = [
        "//rs:ic-os-pkg",
        "//rs:system-tests-pkg",
    ],
    vuln_scan = False,
)

launch_bare_metal(
    name = "launch_bare_metal",
    image_zst_file = ":disk-img.tar.zst",
)

# Export checksums & build artifacts
artifact_bundle(
    name = "bundle",
    testonly = True,
    inputs = [":dev"],
    prefix = "setup-os/disk-img-dev",
    visibility = ["//visibility:public"],
)
